package com.example;

import java.util.Collection;

/**
 * User: sckomoroh
 * Date: 2/17/13
 * Time: 2:57 PM
 */

@ContractXmlType(name = "boolContract")
public class BoolContract
{
    private boolean result;
    private BoolCollection list;

    public BoolContract()
    {
        this (false);
    }

    public BoolContract(boolean result)
    {
        this.result = result;
    }

    @ContractXmlField(name = "result")
    public boolean getResult()
    {
        return this.result;
    }

    @ContractXmlField(name = "result", isSetter = true)
    public void setResult(boolean result)
    {
        this.result = result;
    }

    @ContractXmlField(name = "list")
    public BoolCollection getList()
    {
        return list;
    }

    @ContractXmlField(name = "list", isSetter = true)
    public void setList(BoolCollection list)
    {
        this.list = list;
    }
}
